package cn.edu.ujn.booksshop.dao;

public class Review {
    private Integer reviewid;

    private Integer userid;

    private Integer bookid;

    private Integer rating;

    private String comment;
    
    private Boolean isdeleted;

    public Integer getReviewid() {
        return reviewid;
    }

    public void setReviewid(Integer reviewid) {
        this.reviewid = reviewid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	@Override
	public String toString() {
		return "Review [reviewid=" + reviewid + ", userid=" + userid + ", bookid=" + bookid + ", rating=" + rating
				+ ", comment=" + comment + ", isdeleted=" + isdeleted + "]";
	}
    
}